<!--
 * @Autor: 黄旗
 * @Date: 2020-07-17 09:00:14
-->
<template>
    <DatePicker
        v-show="params.show ? params.show.show : true"
        :editable="false"
        :style="params.style"
        :type="params.type"
        v-model="params.value"
        :format="params.format"
        :placement="params.placement"
        :placeholder="params.placeholder || '请选择日期'"
        :options="params.options"
        :split-panels="params.splitPanels"
        :multiple="params.multiple"
        :show-week-numbers="params.showWeekNumbers"
        :start-date="params.startDate"
        :confirm="params.confirm"
        :open="params.open"
        :size="params.size"
        :disabled="params.disabled"
        :clearable="params.clearable"
        :readonly="params.readonly"
        :transfer="params.transfer"
        :element-id="params.elementId"
        :time-picker-options="params.timePickerOptions"
        :separator="params.separator"
        :capture="params.capture"
        @on-change="$emit('on-change', $event)"
        @on-clear="$emit('on-clear', $event)"
    ></DatePicker>
</template>

<script>
export default {
  props: ["params"],
};
</script>
